import request from '../utils/request';

// 登录请求
export const login = ({ mobile, code }) =>
  request({
    url: '/authorizations',
    method: 'post',
    data: {
      mobile,
      code,
    },
  });

// 获取用户信息
export const getUserInfo = () =>
  request({
    url: '/user/profile',
    method: 'get',
  });
